﻿using RsCms.Application.Posts.Dto;
using RsCode;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RsCms.Application
{
    [ScopedService]
    public interface IPagesAppService
    {
        Task<PostsDto> GetPageInfoAsync(string id);
        Task<PostEditDto> SaveAsync(PostEditDto dto);
        Task<PageData<PostEditDto>> PageAsync(int page, int pageSize);

        Task DeleteAsync(string id);
    }
}
